home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 2003 September / PC Answers September 2003.iso / Software / trial / MonitorIT 5.2.06 / monitorit_fullsetup.exe / data1.cab / Rpm / ViewTools.asp < prev   
Encoding:
Text File  |  2003-06-24  |  24.6 KB  |  668 lines

  1. <html>
  2.  
  3. <head>
  4. <title>MonitorIT Net Tools</title>
  5. <link rel="stylesheet" type="text/css" href="css/rpmstyle.css">
  6.  
  7. <style>
  8. .GTabBox {  height : 400; width : 630; border: none; background-color : activeborder }
  9.  
  10. .StatMsg { background-color: white; color: infotext; font-family:arial; font-size: 8pt; font-weight: 500; }
  11. .StatMsg { height : 190px; width : 510px; border-style : solid; border-width : 2px; overflow : scroll }
  12. .StatMsg { border-top-color : #555555; border-left-color : #555555; border-bottom-color : #E0E0E0; border-right-color : #E0E0E0 }
  13.  
  14. .Soptext { font-size: 8pt; font-weight: 500; color: windowtext }
  15. .Soptextb { font-size: 9pt; font-weight: bold; color: windowtext; background-color:activeborder }
  16.  
  17. </style>
  18. </head>
  19.  
  20. <body class="bodyc" language="JavaScript" RPMHostIP="!BreakoutBot:MonitorIP!"
  21. RPMHostPort="!BreakoutBot:MonitorPort!" RPMUserName="!BreakoutBot:UserName!" BOBDone="!BreakoutBot:Done!"
  22. onload="top.banner.savePageCoord(event,document.body,'ViewTools'); InitRpmCC_AG();" onbeforeunload="DiscoRpmCC_AG()" onresize="processSizeChange()" onclick="checkClick()" onkeydown="processBSP()">
  23.  
  24. <script LANGUAGE="JavaScript" src="js/MiscFunc.js"></script>
  25. <script LANGUAGE="JavaScript" src="js/ButtonFunc.js"></script>
  26.  
  27. <script LANGUAGE="JavaScript">
  28. <!--
  29. var ignoreDBChangeEvent = false;
  30. var     ReconnectEvent = false;
  31. var     Hp = 82;
  32. var   Tid = null;
  33.  
  34. // Capture and ignore script errors
  35.     window.onerror = wwScrErr;
  36. function wwScrErr() {
  37.     return true;
  38. }
  39.  
  40. /* On Load tell the Comm control to Connect to the Server */
  41. function InitRpmCC_AG() {
  42.     top.MainLoaded = true; // Flag that Main is now loaded
  43.     initButtonState(); // set initial button state
  44.     Hp = parseInt(document.body.RPMHostPort,10);
  45.     RpmCC_AG.Connect(document.body.RPMHostIP,Hp, "");
  46.     processSizeChange();
  47. }
  48. function processReconnect() {
  49.     Tid = null;
  50.     if ( RpmCC_AG.IsConnected() ) {
  51.         Tid = setTimeout("processConnectionCheck()",30000); // Delay 30 secs then check connection
  52.         return;
  53.     }
  54.     RpmCC_AG.Connect(document.body.RPMHostIP,Hp, ""); 
  55. }
  56. function processConnectConfirmed() {
  57.     // Restore Filter and Computer Store    
  58.     if ( ReconnectEvent == false ) {
  59.         ReconnectEvent = true;
  60.     }
  61.     top.Rstatus.Pstat("Connected");
  62.     if ( Tid != null ) {
  63.         clearTimeout(Tid); // stop timeout routine
  64.     }
  65.     Tid = setTimeout("processConnectionCheck()",30000); // Delay 30 secs then check connection
  66. }
  67. function processConnectionCheck() {
  68.     Tid = null;
  69.     RpmCC_AG.SendKeepAlive("Check");
  70.     Tid = setTimeout("processConnectionCheck()",30000); // Delay 30 secs then check connection
  71. }
  72.  
  73. /* On Unload tell the Comm control to Disconnect from the Server */
  74. function DiscoRpmCC_AG() {
  75.     RpmCC_AG.Disconnect();
  76.     top.banner.processStopCommX();
  77.     if ( Tid != null ) {
  78.         clearTimeout(Tid); // stop timeout routine
  79.     }
  80. }
  81.  
  82. /* Process Combo Tool Name Change Event */
  83. function processToolName() {
  84.     if (AG_ToolSel.selectedIndex == 0) {
  85.         SetButtonState(GStartButton,"1");
  86.     }
  87.     else {
  88.         SetButtonState(GStartButton,"0");
  89.     }
  90.     // no display by default
  91.     tr_option.style.display = "none";
  92.     snmp_option.style.display = "none";
  93.     snmp_set_option.style.display = "none";
  94.     if (AG_ToolSel.selectedIndex == 1) {
  95.         tr_option.style.display = "";
  96.     }
  97.     else if (AG_ToolSel.selectedIndex == 4) {
  98.         snmpoid.value="sysName;  sysDescr;  sysUpTime";
  99.         snmpoid.title="Accept these standard 'System' Object names or clear it for a default query; otherwise specify one or more OIDs or Object names that you want to query, separated by semi-colon";
  100.         snmp_option.style.display = "";
  101.     }
  102.     else if (AG_ToolSel.selectedIndex == 5 || AG_ToolSel.selectedIndex == 6) {
  103.         snmpoid.value="system";
  104.         snmpoid.title="Accept this standard 'System' Group name to start 'walking' the OID tree; otherwise specify a Group or Object name, or OID, that you want to query first";
  105.         snmp_option.style.display = "";
  106.     }
  107.     else if (AG_ToolSel.selectedIndex == 7) {
  108.         snmp_set_option.style.display = "";
  109.     }
  110. }
  111.  
  112. // Process Start Button
  113. var IPAddress = null;
  114. var HostName = null;
  115. var Tid = null;
  116. function processStartButton() {
  117.     ResetState = 0;
  118.     // Verify Ip Address/Host Name specified
  119.     if ( AG_Address.value == "" ) {
  120.         alert("Please enter an IP Address or Server/Host Name");
  121.         top.Rstatus.Pstat("Please enter an IP Address or Server/Host Name",true);    
  122.         AG_Address.focus();
  123.         return;
  124.     }
  125.     processStart(); 
  126.     Tid = setTimeout("processGo()",100); // Delay then process
  127. }
  128. var ResolveFlag = "1";
  129. var TTLive = "45";
  130. var ToS = "0"; // general Type of Service
  131. var ToV = "5000"; // default t/o
  132. var ProbeV = "1";
  133. var opid = null;
  134. var opnumber = null;
  135. var WalkCount = 0;
  136. function processGo() {
  137. var warr = new Array();
  138.     Tid = null    // Determine HostName from IP Address or Vice-versa
  139.     warr = AG_Address.value.split("."); // see if IP address specified
  140.     if ( warr.length == 4 ) { // assume IP address is specified
  141.         IPAddress = AG_Address.value;
  142.         HostName = RpmMIL.ResolveIPAddrToName(IPAddress);    
  143.     }
  144.     else {
  145.         HostName = AG_Address.value;
  146.         IPAddress = RpmMIL.ResolveNameToIPAddr(HostName);    
  147.     }
  148.  
  149.     // Process Tool selection
  150.     SetButtonState(GStartButton,"1");
  151.     switch ( opnumber = AG_ToolSel.selectedIndex ) {
  152.    case 1 : // Trace Route
  153.        outHeader("Trace Route");
  154.        ResolveFlag = (resolveip.checked) ? "1" : "0";
  155.        TTLive = ttlv.options[ttlv.selectedIndex].value;
  156.        ToS = tosv.options[tosv.selectedIndex].value;
  157.        ToV = tov.options[tov.selectedIndex].value;
  158.        ProbeV = probec.options[probec.selectedIndex].value;
  159.        TRarg = IPAddress+","+ResolveFlag+",1,0,0,0,1,"+TTLive+",32,4,1,1,"+ToS+","+ToV+","+ProbeV;
  160.        opid = RpmMIL.TraceRt(TRarg);    
  161.         SetButtonState(GResetButton,"0");
  162.         top.Rstatus.Pstat("Processing Trace Route");    
  163.       break;
  164.    case 2 : // DNS Lookup
  165.        outHeader("DNS Lookup");
  166.        processDone();
  167.       break;
  168.    case 3 : // PING
  169.        outHeader("PING");
  170.       opid = RpmMIL.Ping(IPAddress,2,10);
  171.         top.Rstatus.Pstat("Sending PING");    
  172.       break;
  173.    case 4 : // SNMP Viewer Get
  174.        outHeader("SNMP Get");
  175.        var warr = new Array();
  176.        warr = snmpoid.value.split(";");
  177.        var oid = warr.join("^");
  178.        opid = RpmCC_AG.SnmpDiscovery(IPAddress,snmprqst.value+"~"+oid,"1","0",snmpto.value,"1~0");    
  179.         SetButtonState(GResetButton,"0");
  180.         top.Rstatus.Pstat("Processing SNMP Get");    
  181.       break;
  182.     case 5 : // SNMP Viewer Get Next
  183.        outHeader("SNMP Get_Next");
  184.        var warr = new Array();
  185.        warr = snmpoid.value.split(";");
  186.        var oid = warr.join("^");
  187.        opid = RpmCC_AG.SnmpDiscovery(IPAddress,snmprqst.value+"~"+oid,"1","0",snmpto.value,"1~1");    
  188.         SetButtonState(GResetButton,"0");
  189.         top.Rstatus.Pstat("Processing SNMP Get_Next");    
  190.       break;
  191.      case 6 : // SNMP Viewer Walk MIB
  192.        outHeader("SNMP Walk_MIB");
  193.        WalkCount = 0;
  194.        var warr = new Array();
  195.        warr = snmpoid.value.split(";");
  196.        var oid = warr.join("^");
  197.        opid = RpmCC_AG.SnmpDiscovery(IPAddress,snmprqst.value+"~"+oid,"1","0",snmpto.value,"1~1");    
  198.         SetButtonState(GResetButton,"0");
  199.         top.Rstatus.Pstat("Processing SNMP Walk_MIB");    
  200.       break;
  201.      case 7 : // SNMP Viewer Set
  202.        outHeader("SNMP Set");
  203.        var warr = new Array();
  204.        warr = snmpwoid.value.split(";");
  205.        snmpwoid.value = warr[0];
  206.        opid = RpmCC_AG.SnmpDiscovery(IPAddress,snmpwcom.value+"~"+snmpwoid.value,"1","0",snmpwto.value,"1~2~"+snmpwvalue.value+"~"+snmpwtype.selectedIndex);    
  207.         SetButtonState(GResetButton,"0");
  208.         top.Rstatus.Pstat("Processing SNMP Set");    
  209.       break;
  210.  default : 
  211.     }
  212. }
  213. function outHeader(ttyp) {
  214.     updateStatMessage("<br><span style='font-family: arial; font-size: 10pt; font-weight: 700;'>"+ttyp+": IP Address - '"+IPAddress+"'<br> Server/Host Name - '"+HostName+"'<br></span>");
  215. }
  216. function    processDone() {
  217.     updateStatMessage("Done<br>");
  218.     top.Rstatus.Pstat("Done",true);    
  219.     SetButtonState(GResetButton,"1");
  220.     if (AG_ToolSel.selectedIndex != 0) {
  221.         SetButtonState(GStartButton,"0");
  222.     }
  223.     processReset();
  224. }
  225.     
  226. function processTraceRouteResponse(retc,rstrg) {
  227. var warr = new Array();
  228. var warr1 = new Array();
  229.     if ( retc == "1" ) {
  230.         processDone()
  231.    }
  232.     else {
  233.         warr = rstrg.split(":");
  234.         if ( warr[2] == "Tracing" ) {
  235.             updateStatMessage(" "+warr[2]+": "+warr[3]);
  236.             processLogHeader();
  237.         }
  238.         else {    
  239.             warr1 = warr[2].split(" ");
  240.             var Tip = ( ResolveFlag == "1" ) ? warr1[8] : warr1[7];
  241.             var Tov = ( ResolveFlag == "1" ) ? warr1[10] : warr1[9];
  242.             outputLogEvent(warr1[7],Tip,Tov,warr1[2],warr1[5])
  243.         }
  244.     }
  245. }
  246.  
  247. function processPingResponse(Reason) {
  248.     updateStatMessage(" "+Reason+"<br>");
  249.       processDone();
  250. }
  251.  
  252. function processSNMPViewerResponse(Reason, RStat) {
  253.     var warr = new Array();
  254.     var NextOIDs = "";
  255.     if ( RStat == "0" ) { // if successful
  256.         if ( opnumber == 5 || opnumber == 6) {
  257.             warr = Reason.split("<br>");
  258.             Reason = warr[0]+"<br>";
  259.             if ( opnumber == 6) {
  260.                 if ( WalkCount++ > 0 ) {
  261.                     Reason = "";
  262.                 }
  263.             }
  264.             for ( var i=1; i<warr.length-1; i+=3 ) {
  265.                 if ( i > 1 ) {
  266.                     NextOIDs += "; ";
  267.                 }
  268.                 NextOIDs += warr[i];
  269.                 Reason += warr[i]+" : "+warr[i+1]+" : "+warr[i+2];
  270.             }
  271.             snmpoid.value = NextOIDs;
  272.             Reason += "<br>";
  273.         }    
  274.         updateStatMessage(Reason);
  275.         if ( opnumber == 6 && ResetState == 0 ) {
  276.             warr.length = 0;
  277.            warr = snmpoid.value.split(";");
  278.            var oid = warr.join("^");
  279.            opid = RpmCC_AG.SnmpDiscovery(IPAddress,snmprqst.value+"~"+oid,"1","0",snmpto.value,"1~1");    
  280.        }
  281.        else {
  282.              processDone();
  283.           }
  284.       }
  285.       else 
  286.       {
  287.           if ( opnumber == 7 && Reason.indexOf("ariable does not exist") > 0 ) { // if set
  288.            Reason += "<br>Check Write Community and Write permissions";
  289.         }
  290.           Reason += "<br>";
  291.         updateStatMessage(Reason);
  292.           processDone();
  293.       }          
  294. }
  295.  
  296. function updateStatMessage(sMsg) {
  297.     StatusMessage.insertAdjacentHTML("beforeEnd",sMsg);
  298.     StatusMessage.scrollIntoView(false);
  299. }
  300.  
  301. function processClearButton() {
  302.     StatusMessage.innerHTML = "";
  303.     SetButtonState(ClearButton,"1");
  304.     SetButtonState(StatusPrintButton,"1");
  305. }
  306. var ResetState = 0;
  307. function processResetButton() {
  308.     ResetState = 1;
  309.     if ( opnumber == 1 ) {
  310.           RpmMIL.CleanupTraceRtObject(opid);    
  311.       }
  312.     updateStatMessage("<br>Canceled by User<br>");
  313.     top.Rstatus.Pstat("Canceled",true);    
  314.     SetButtonState(GResetButton,"1");
  315.     if (AG_ToolSel.selectedIndex != 0) {
  316.         SetButtonState(GStartButton,"0");
  317.     }
  318.     processReset();
  319. }
  320.  
  321. function processKeyPress() {
  322.     /* get KeyCode and check if invalid */
  323.     kc = event.keyCode;
  324.     stat = 1; // default to OK
  325.  
  326.     // Keys:   ~            %           [           ]           #           !
  327.     if (kc == 126 ||    kc == 37 || kc == 91 ||    kc == 93 || kc == 35 || kc == 33) { // Not acceptable 
  328.         stat = 0;
  329.     } // Keys:        *           ?
  330.     else if ( (kc == 42 || kc == 63) &&  event.srcElement.name != "AG_Name" ) { //Not acceptable
  331.         stat = 0;
  332.     }
  333.     if (stat == 0) { // if Not Acceptable
  334.         event.returnValue=false;
  335.         top.Rstatus.Pstat("Keys ~%*?[]#! are not accepted for this field");    
  336.         alert("Keys ~%*?[]#! are not accepted for this field");    
  337.     }
  338.     else {
  339.         top.Rstatus.Pstat(""); // clear status line
  340.     }
  341. }    
  342.  
  343. /* Set initial button state */
  344. function initButtonState() {
  345.     SetButtonState(GStartButton,"1");    
  346.     SetButtonState(GResetButton,"1");
  347. }
  348. function SetButtonState(BtObj,BState) {
  349.     //BtObj.className = (BState == "0") ? "BoxButton" : "BoxButtonD";
  350.     BtObj.disabled = (BState == "0") ? "" : "disabled";
  351.     BtObj.bdis = BState;
  352. }
  353.  
  354. function processStart() {
  355.     SetCursor("wait");
  356.     top.banner.processStartComm();
  357.     SetButtonState(StatusPrintButton,"0");
  358.     SetButtonState(ClearButton,"0");
  359. }
  360. function processReset() {
  361.     opid = null; // reset
  362.     SetCursor("auto");
  363.       top.banner.processStopCommX();
  364. }
  365. function processSizeChange() {
  366.     //PopUpContext Menu
  367.     bCw = document.body.clientWidth;
  368.    PopUpContextSize(bCw);
  369. }
  370.  
  371. function PopUpContextOpen() {
  372.     AG_ToolSel.style.visibility = "hidden";
  373.     if (AG_ToolSel.selectedIndex == 1) {
  374.         tr_option.style.visibility = "hidden";
  375.     }
  376. }
  377. function PopUpContextClose() {
  378.     AG_ToolSel.style.visibility = "visible";
  379.     if (AG_ToolSel.selectedIndex == 1) {
  380.         tr_option.style.visibility = "visible";
  381.     }
  382. }
  383. var ELBgFlg = 1;
  384. function processLogHeader() {
  385.     /* Format Output to Log Window */
  386.     FOps = "<div><table border='0' cellpadding='1' cellSpacing='1' width='100%'><tr>";
  387.     FOps += "<td width='200' align='center' class='Soptextb'>Name</td>";
  388.     FOps += "<td width='100' align='center' class='Soptextb'>IP Address</td>";
  389.     FOps += "<td width='40' align='center' class='Soptextb'>Time</td>";
  390.     FOps += "<td width='18' align='center' class='Soptextb'>TTL</td>";
  391.     FOps += "<td width='18' align='center' class='Soptextb'>Probe</td>";
  392.     FOps += "</tr></table></div>";
  393.     updateStatMessage(FOps);
  394. }
  395.  
  396. function outputLogEvent(Dname,Dipadr,Dtime,Dttl,Dprobe) {
  397.     if ((ELBgFlg ^= 1) == 0) {
  398.         FOps = "<div style='background-color:white'>";
  399.     }
  400.     else {
  401.         FOps = "<div style='background-color:e8e8e8'>";
  402.     }
  403.     FOps += "<table border='0' cellpadding='1' cellSpacing='1' width='100%'><tr>";
  404.     FOps += "<td width='200' align='left' class='Soptext'>"+Dname+"</td>";
  405.     FOps += "<td width='100' align='left' class='Soptext'>"+Dipadr+"</td>";
  406.     FOps += "<td width='40' align='left' class='Soptext'>"+Dtime+"</td>";
  407.     FOps += "<td width='18' align='left' class='Soptext'>"+Dttl+"</td>";
  408.     FOps += "<td width='18' align='left' class='Soptext'>"+Dprobe+"</td>";
  409.     FOps += "</tr></table></div>";
  410.     updateStatMessage(FOps);
  411. }
  412.  
  413. // Print Status
  414. var DiscStatWindow = null;
  415. function processPrintStatus() {
  416.     if ( !top.banner.IE55orBetter ) {
  417.         alert("Print requires IE 5.5/SP1 or greater. Download current, free IE update from Microsoft's web site");
  418.         return;
  419.     }
  420.     SetButtonState(StatusPrintButton,"1");
  421.     FakeBut.click();    // simulate event to call "savePageCoord(...)"
  422.     var wprop = "height="+top.banner.bCh+",width="+top.banner.bCw
  423.     wprop += ",top="+(top.banner.bY-28)+",left="+(top.banner.bX-4)+",scrollbars";
  424.     var rName = ""+Math.random(); // use Random number to get unique Window name
  425.     rName = rName.substring(2,rName.length);
  426.     DiscStatWindow = window.open("",rName,wprop);
  427.     if ( DiscStatWindow == null ) {
  428.         return;   
  429.     }
  430.     var dh = "<html><head><title>MonitorIT - Net Tools Results Report</title>";
  431.     dh += "<link rel='stylesheet' type='text/css' href='css/Rpmstyle.css'>";
  432.     dh += "<style>";
  433.     dh += ".Soptext { font-size: 8pt; font-weight: 500; color: windowtext }";
  434.     dh += ".Soptextb { font-size: 9pt; font-weight: bold; color: windowtext; background-color:activeborder }";
  435.     dh += "</style></head><body";
  436.     dh += " title='Exit to Close Window when Printing is complete'>"; 
  437.     dh += StatusMessageDiv.innerHTML;
  438.     dh += '<script LANGUAGE="JavaScript">window.focus();';
  439.     dh += ' </script></body></html>';
  440.     DiscStatWindow.document.open();
  441.     DiscStatWindow.document.write(dh)
  442.     DiscStatWindow.document.close();
  443.     DiscStatWindow.print();
  444.     SetButtonState(StatusPrintButton,"0");
  445. }
  446. //-->
  447. </script>
  448.     
  449. <script FOR="RpmCC_AG" EVENT="SnmpDiscovery(DevS)">
  450. <!--
  451. var warr = new Array();
  452. var warr1 = new Array();
  453. warr = DevS.split("~"); // parse out response
  454. var uid = "A"+warr[0];
  455. warr[0] = "Successful"
  456. warr1 = warr[1].split(":");
  457. vstat = (warr1[0] == "Err") ? "1": "0";
  458. vmsg = (vstat == "0") ? warr.join("<br>") : warr[1];
  459. processSNMPViewerResponse(vmsg, vstat);
  460. //-->
  461. </script> 
  462.  
  463. <script LANGUAGE="JavaScript" FOR="RpmMIL" EVENT="Response(ReqID,RetCode,Reason)">
  464. <!--
  465. if ( opid == null ) {
  466.     return; // ignore
  467. }
  468.  
  469. if ( opnumber == 3 ) {
  470.     processPingResponse(Reason);
  471. }
  472. else if ( opnumber == 1 ) {
  473.     processTraceRouteResponse(RetCode,Reason);
  474. }
  475. //-->
  476. </script> 
  477.  
  478. <script LANGUAGE="JavaScript" FOR="RpmCC_AG" EVENT="Connected()">
  479. <!--
  480. processConnectConfirmed();
  481. //-->
  482. </script> 
  483. <script LANGUAGE="JavaScript" FOR="RpmCC_AG" EVENT="Disconnected()">
  484. <!--
  485. top.Rstatus.Pstat("Disconnected",true);
  486. if ( Tid != null ) {
  487.     clearTimeout(Tid); // stop timeout routine
  488. }
  489. Tid = setTimeout("processReconnect()",10000); // Delay 10 secs then try reconnnect
  490. //-->
  491. </script>
  492.  
  493. <script LANGUAGE="JavaScript" FOR="RpmCC_AG" EVENT="DBChanged(cdata)">
  494. <!--
  495. //-->
  496. </script>
  497. <script LANGUAGE="JavaScript" FOR="RpmCC_AG" EVENT="StartCommunication()">
  498. <!--
  499. top.banner.processStartComm();
  500. //-->
  501. </script>
  502. <script LANGUAGE="JavaScript" FOR="RpmCC_AG" EVENT="StopCommunication()">
  503. <!--
  504. top.banner.processStopComm();
  505. //-->
  506. </script> 
  507.  
  508. <script LANGUAGE="JavaScript" src="js/PopUpMenuFunc.js"></script>
  509.  
  510. <!-- Invisible Object to Support Simulated Click Event -->
  511. <button id="FakeBut" style="display:none" onclick="top.banner.savePageCoord(event,document.body,'AdminDataExport')">
  512. </button>
  513.  
  514. <object ID="RpmCC_AG" NAME="RpmCC_AG" WIDTH="14" HEIGHT="1" style="display:none"
  515. CLASSID="CLSID:D88C2358-FC83-11D1-BF49-00104B2D6F80" CODEBASE="controls/RPMComm.cab#version=5,1,0,2">
  516.   <param name="_Version" value="65536">
  517.   <param name="_ExtentX" value="2646">
  518.   <param name="_ExtentY" value="1341">
  519.   <param name="_StockProps" value="0">
  520. </object>
  521.  
  522. <object ID="RpmMIL" NAME="RpmMIL" WIDTH="14" HEIGHT="1" style="display:none"
  523. CLASSID="CLSID:19366A96-A776-11D3-81E6-00105A97FB7D" CODEBASE="controls/MonitorITLive.cab#version=4,2,2,0">
  524.   <param name="_Version" value="65536">
  525.   <param name="_ExtentX" value="2646">
  526.   <param name="_ExtentY" value="1341">
  527.   <param name="_StockProps" value="0">
  528. </object>
  529.  
  530.  
  531. <center><div class="GTabBox" border="0" >
  532. <center>
  533. <div align="left" style="clear:both">
  534. <table border="1"  borderColor="activeborder" align="left">
  535.     <tr><td borderColorDark="graytext" borderColorLight="white" height="25" style="font-weight:800; font-size:12pt; background-color:threedhighlight; color:windowtext"> <img src="images/nettoolboxsm.gif" align="absmiddle" height="16" width="16"> Net Toolbox </td>
  536.     </tr></table><br><br>
  537. </div>
  538.  
  539. <div align="left" style="clear:both">
  540. <table align="left" class="fldset" border="0" width="550" cellspacing="3" cellpadding="2" height="125">
  541.   <tr>
  542.     <td width="550" height="120">
  543.     
  544.      <table align="left" border="0" width="550" cellspacing="3" cellpadding="2" height="77">
  545.       <tr>
  546.         <td width="150" align="right" class="inputlabel" height="1">Select Tool:</td>
  547.         <td width="400" height="1"><select ONCHANGE="processToolName()" SIZE="1" 
  548.           NAME="AG_ToolSel" style="width: 200pt">
  549.            <option>-- Select a Net Tool --</option>
  550.            <option> Trace Route </option>
  551.            <option> DNS Lookup </option>
  552.            <option> PING Server/Device </option>
  553.            <option> SNMP Get </option>
  554.            <option> SNMP Get_Next </option>
  555.            <option> SNMP Walk MIB </option>
  556.            <option> SNMP Set </option>
  557.            </select>
  558.            </td>
  559.       </tr>
  560.       <tr>
  561.         <td width="150" align="right" class="inputlabel" height="1">Name/IP Address:</td>
  562.         <td width="400" height="1"><input TYPE="text" SIZE="50" NAME="AG_Address" maxLength="64"
  563.         onkeypress="processKeyPress();" onkeydown="processKeyDown();" onFocus="chkDisabled(this)"> </td>
  564.       </tr>
  565.        <tr width="550" height="48">
  566.         <td width="550" colspan="2">
  567.         
  568.         <div id="tr_option" style="display:none" class="inputlabel" align="center">
  569.         Resolve IP Addresses: <input id="resolveip" type="checkbox" CHECKED > 
  570.               ProbeCount: <select id="probec">
  571.          <option value="1">1</option>
  572.          <option value="2">2</option>
  573.          <option value="3" selected>3</option>
  574.          <option value="4">4</option>
  575.          <option value="5">5</option>
  576.          <option value="6">6</option>
  577.          <option value="7">7</option>
  578.          <option value="8">8</option>
  579.          <option value="9">9</option>
  580.          <option value="10">10</option>
  581.          <option value="11">11</option>
  582.          <option value="12">12</option>
  583.          <option value="13">13</option>
  584.          <option value="14">14</option>
  585.          <option value="15">15</option></select> 
  586.                 TimeOut: <select id="tov">
  587.          <option value="20">20 ms.</option>
  588.          <option value="50">50 ms.</option>
  589.          <option value="100">100 ms.</option>
  590.          <option value="250">250 ms.</option>
  591.          <option value="500">500 ms.</option>
  592.          <option value="1000">1 sec.</option>
  593.          <option value="5000" selected>5 sec.</option>
  594.          <option value="10000">10 sec.</option>
  595.          <option value="30000">30 sec.</option></select><br>
  596.          TimeToLive: <select id="ttlv">
  597.          <option value="1">Local Network (TTL=1)</option>
  598.          <option value="15">Local Site (TTL=15)</option>
  599.          <option value="31">Enterprise (TTL=31)</option>
  600.          <option value="63" selected>Region (TTL=63)</option>
  601.          <option value="127">World (TTL=127)</option></select> 
  602.                TypeOfService: <select id="tosv">
  603.          <option value="0" selected>General</option>
  604.          <option value="16">Low Delay</option>
  605.          <option value="4">High Reliability</option>
  606.          <option value="8">High Thruput</option></select> 
  607.         </div>
  608.         
  609.             <div id="snmp_option" style="display:none" class="inputlabel" align="center">Read Community:  <input id="snmprqst" value="public" type="text" maxLength="45" size="40">        Time-Out:  <input id="snmpto" value="2" type="text" maxLength="2" size="3"><br>OID(s):  <input id="snmpoid" title="Accept these standard OIDs or clear it for a default query; otherwise specify one or more OIDs that you want to query, separated by semi-colon" value="sysName;  sysDescr;  sysUpTime" type="text" maxLength="180" size="77">    
  610.         </div>
  611.         
  612.             <div id="snmp_set_option" style="display:none" class="inputlabel" align="center">Write Community:  <input id="snmpwcom" value="public" type="text" maxLength="45" size="40">        Time-Out:  <input id="snmpwto" value="2" type="text" maxLength="2" size="3"><br>Target OID:  <input id="snmpwoid" title="OID to be set"  type="text" maxLength="180" size="30">   Set Value:  <input id="snmpwvalue" title="Value to be set"  type="text" maxLength="100" size="15">   Type:  <select id="snmpwtype">
  613.          <option value="1">COUNTER</option>
  614.          <option value="2">LONG</option>
  615.          <option value="3">UNSIGNED</option>
  616.          <option value="4" selected>STRING</option>
  617.          <option value="5">IP ADDRESS</option>
  618.         </select>   
  619.         </div>
  620.         
  621.        </td>
  622.       </tr>
  623.     </table>
  624.     
  625.    </td>
  626.   </tr>
  627.    
  628.   <tr>
  629.     <td width="550" height="120">
  630.     
  631.      <table border="0" width="550" cellspacing="3" cellpadding="2" height="77">
  632.        <tr>
  633.         <td width="40" align="right" class="inputlabel" height="1">Result:</td>
  634.         <td width="510" height="1">
  635.         
  636.          <div class="StatMsg" id="StatusMessageDiv">
  637.              <table border="0" width="490" cellspacing="0" cellpadding="0" height="77">
  638.           <tr>
  639.             <td width="*" align="left" height="1">
  640.               <span id="StatusMessage" style="color: infotext; font-family:arial; font-size: 8pt; font-weight: 500;"></span>
  641.             </td>
  642.            </tr>
  643.           </table>
  644.          </div>
  645.          
  646.         </td>
  647.       </tr>
  648.     </table>
  649.     
  650.     </td>
  651.   </tr>
  652.  </table>
  653. </div>
  654.  
  655. <div align="left" style="clear:both"> 
  656. <table class="fldset" border="1" width="600" cellspacing="1" cellpadding="1" height="40">
  657.   <tr>
  658.     <td width="600" align="center" height="40">
  659.     <button id="GStartButton" title="Start execution of selected tool function" onclick="if (this.bdis == '0') processStartButton();" bdis="0" style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/apply.gif" align="absmiddle" height="16" width="16">Start</button> <button id="GResetButton" title="Cancel tool operation" onclick="if (this.bdis == '0') processResetButton();" bdis="0" style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/reset.gif" align="absmiddle" height="15" width="15">Cancel</button> <button id="ClearButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" title="Clear the Result Log" style="width:90px; height:29px" onClick="processClearButton()" disabled><img src="images/unselectall.gif" align="absmiddle" height="15" width="14"> Clear Log</button> <button id="StatusPrintButton" title="Print Tools Results Log" onclick="if (this.bdis == '0') processPrintStatus();" bdis="0" style="width:85px; height:29px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" DISABLED><img src="images/Printer.gif" align="absmiddle" height="15" width="17"> Print</button></td> </tr>
  660. </table>
  661. </div>
  662.  
  663. </div>
  664.  
  665. </center>
  666. </body>
  667. </html>
  668.